Page History: Scripting Function Reference
Compare Page Revisions
Page Revision: 2011/06/15 22:20
Fields
Fields are values that can be referenced directly in a script. For example
CLOSE
(or
C
in shorthand) represents the closing price of the current bar of the calculation.
Field | Description |
---|
OPEN, O | Opening price |
HIGH, H | High price |
LOW, L | Low price |
CLOSE, C | Closing price |
TYPICAL, TYP | Typical price (O + H +C) / 3 |
VOLUME, V | Volume |
TRADES | Number of trades that make up the current bar (Note: this is not always available yet.) |
INDEX | Index of the current bar being computed. This runs from 0 to COUNT - 1. |
COUNT | Number of bars on the chart. |
BARPERCENT | Percentage completion of the current bar. E.g. 15 minutes into a 1 hour bar would give 0.25 |
NUMERATOR | The numerator of the market. |
DENOMINATOR | The denominator of the market. |
TICKVALUE | The tick value of the market. |
NIL | Special "non-value" field. |
MARKETID | The text market id. |
MARKET_DESCRIPTION | The text description of the market. |
Operators
Arithmetic Operators | Operator!! Description |
---|
OPEN, O | Opening price |
HIGH, H | High price |
LOW, L | Low price |
CLOSE, C | Closing price |
TYPICAL, TYP | Typical price (O + H +C) / 3 |
VOLUME, V | Volume |
TRADES | Number of trades that make up the current bar (Note: this is not always available yet.) |
INDEX | Index of the current bar being computed. This runs from 0 to COUNT - 1. |
COUNT | Number of bars on the chart. |
BARPERCENT | Percentage completion of the current bar. E.g. 15 minutes into a 1 hour bar would give 0.25 |
NUMERATOR | The numerator of the market. |
DENOMINATOR | The denominator of the market. |
TICKVALUE | The tick value of the market. |
NIL | Special "non-value" field. |
MARKETID | The text market id. |
MARKET_DESCRIPTION | The text description of the market. |
Functions
Plotting, Summary and Configuration Functions¶